/*
 * CodeSaveCommand.java
 *
 * Created on 2006년 3월 29일 (수), 오후 4:11
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.welfare;

import java.util.*;

import java.io.File;
import javax.servlet.*;
import javax.servlet.http.*;

import com.welfare.home.HomeDAO;
import com.zll.framework.model.HashBox;
import com.zll.framework.model.HashList;
import com.zll.framework.servlet.Command;
import com.zll.framework.util.StringUtil;




/**
 *
 * @author eastar
 */
public class SearchCommand implements Command
{
    public String execute(HttpServletRequest  request, HttpServletResponse response)
    throws Exception
    {
    	
    	HashBox box = new HashBox(request);

    	if ("Y".equals(box.get("excel_yn"))) {
    		return "/searchExcel.jsp";
    	} else if ("m".equals(box.get("ty"))) {
        	return "/msearch.jsp";
    	} else {
    		return "/search.jsp";
    	}
    }
}
